<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>资源列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<style type="text/css">
	
		
		table{border-right:1px solid #00BB00;border-bottom:1px solid #00BB00}
		table td{border-left:1px solid #00BB00;border-top:1px solid #00BB00}
	</style>
	  
	</head>
  
  <body>
    <center>
     <a style="float: left" href="<%=basePath%>sign">申请资源</a><br>
    <a style="float: left" href="<%=basePath%>signlist">查看申请列表</a>
    资源列表. <br>
	    	<table >
	    		<tr>
	    			<td>添加时间</td>
	    			<td>资源名称</td>
	    			<td>持有人</td>
	    		</tr>
	    		<c:forEach items="${list }" var="obj">
	    			<tr>
		    			<td>${obj.createDate }</td>
		    			<td>${obj.name}</td>
		    			<td>${obj.holder}</td>
		    		</tr>
	    		</c:forEach>
	    	</table>
    </center>
  </body>
</html>
